package com.youlai.boot.factory.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 试用申请单表单对象
 *
 * @author youlaitech
 * @since 2025-11-11 10:19
 */
@Getter
@Setter
@Schema(description = "试用申请单表单对象")
public class TrialApplicationsForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "手机号")
    @NotBlank(message = "手机号不能为空")
    @Size(max=20, message="手机号长度不能超过20个字符")
    private String mobilePhone;

    @Schema(description = "工厂名称")
    @NotBlank(message = "工厂名称不能为空")
    @Size(max=100, message="工厂名称长度不能超过100个字符")
    private String factoryName;

    @Schema(description = "联系人姓名")
    @NotBlank(message = "联系人姓名不能为空")
    @Size(max=50, message="联系人姓名长度不能超过50个字符")
    private String contactName;

    @Schema(description = "工厂人数")
    private Integer employeeCount;

    @Schema(description = "申请人openid")
    @Size(max=64, message="申请人openid长度不能超过64个字符")
    private String applicantOpenid;

    @Schema(description = "申请状态: 0-待处理, 1-已通过, 2-已拒绝")
    private Integer applicationStatus;

    @Schema(description = "审核时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime reviewTime;

    @Schema(description = "审核备注")
    @Size(max=65535, message="审核备注长度不能超过65535个字符")
    private String reviewRemark;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "创建人")
    @Size(max=64, message="创建人长度不能超过64个字符")
    private String createBy;

    @Schema(description = "更新人")
    @Size(max=64, message="更新人长度不能超过64个字符")
    private String updateBy;


}
